<template>
  <div>
    <h1>One</h1>
    <p>{{ count }}</p>
    <button @click="count++">累加</button>
  </div>
</template>

<script>
export default {
  name: "One",
  data() {
    return {
      count: 0,
    };
  },
  mounted() {
    console.log("One组件挂载");
  },
  beforeDestroy() {
    console.log("One组件销毁");
  },
};
</script>

<style></style>
